<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('admin/dels', $attributes);
?>

<input type="hidden" name="page" value="<?=(int)$this->uri->segment('3')?>">
<table class="admindata">
    <thead>
        <tr>
            <th colspan="4"> <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="Xóa">
                <?=lang('existing')?>
                <?=$num?>
                <?=lang('admin')?>
                <?=$pagination?>
                <div class="fr"> <a href="<?=site_url('admin/add')?>">
                    <?=lang('add_new')?>
                    </a> </div>
            </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th><?=lang('id')?></th>
            <th><?=lang('login_name')?></th>
            <th class="publish" style="width: 90px;"><?=lang('functions')?></th>
        </tr>
    </thead>
    <?
            $k=1;
            foreach($list as $rs):?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->admin_id?>"></td>
        <td><?=$rs->admin_id?></td>
        <td><?=$rs->login_name?></td>
        <td align="center"><?=icon_log('logs/listlogs/'.$rs->admin_id)?>
            <?=icon_edit('admin/edit/'.$rs->admin_id)?>
            <span id="publish<?=$rs->admin_id?>">
            <?=icon_active("'sys_admin'","'admin_id'",$rs->admin_id,$rs->bl_active)?>
            </span>
            <?=icon_del('admin/del/'.$rs->admin_id.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
            $k=1-$k;
            endforeach;?>
    <tfoot>
    <td colspan="4"><input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
            <?=lang('existing')?>
            <?=$num?>
            <?=lang('admin')?>
            <?=$pagination?></td>
            </tfoot>
</table>
<?=form_close()?>